package com.njtoyo.taxi.admin.mapper.master.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

import com.njtoyo.taxi.admin.mapper.master.enums.SimpleCallCustomerFlowLogCategory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 一键叫车乘客流水表
 * </p>
 *
 * @author Dell
 * @since 2022-01-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SimpleCallCustomerFlowLog对象", description="一键叫车乘客流水表")
public class SimpleCallCustomerFlowLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "行程Id")
    private Long customerId;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "收入/支出 0:out[支出],1:add[收入]")
    private Boolean inOut;

    @ApiModelProperty(value = "类型（0:recharge[充值],1:order[订单]）")
    private SimpleCallCustomerFlowLogCategory category;

    @ApiModelProperty(value = "详细信息")
    private String detail;

    @ApiModelProperty(value = "额外信息（保留字段）")
    private String extra;

    @ApiModelProperty(value = "外键Id")
    private Long refId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;


}
